package com.fh.bean;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName score
 */
@TableName(value ="score")
@Data
public class Score implements Serializable {
    /**
     * 
     */
    private Integer sId;

    /**
     * 
     */
    private Integer cId;

    /**
     * 
     */
    private Integer sScore;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getsId() {
        return sId;
    }

    /**
     * 
     */
    public void setsId(Integer sId) {
        this.sId = sId;
    }

    /**
     * 
     */
    public Integer getcId() {
        return cId;
    }

    /**
     * 
     */
    public void setcId(Integer cId) {
        this.cId = cId;
    }

    /**
     * 
     */
    public Integer getsScore() {
        return sScore;
    }

    /**
     * 
     */
    public void setsScore(Integer sScore) {
        this.sScore = sScore;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Score other = (Score) that;
        return (this.getsId() == null ? other.getsId() == null : this.getsId().equals(other.getsId()))
            && (this.getcId() == null ? other.getcId() == null : this.getcId().equals(other.getcId()))
            && (this.getsScore() == null ? other.getsScore() == null : this.getsScore().equals(other.getsScore()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getsId() == null) ? 0 : getsId().hashCode());
        result = prime * result + ((getcId() == null) ? 0 : getcId().hashCode());
        result = prime * result + ((getsScore() == null) ? 0 : getsScore().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sId=").append(sId);
        sb.append(", cId=").append(cId);
        sb.append(", sScore=").append(sScore);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }


}